package cn.lingyangwl.agile.msg.push.model.rqrs.notice;

import cn.lingyangwl.agile.model.module.dict.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * 消息模板
 *
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel(value = "消息模板")
public class MsgNoticeResp extends MsgNoticeBase {

	@ApiModelProperty(value = "是否被删除")
	private Boolean deleted;

	@ApiModelProperty(value = "渠道信息")
	private List<Channel> channelList;
	
	@ApiModelProperty(value = "创建时间")
	private Date createdAt;
	
	@ApiModelProperty(value = "创建者")
	private String createdBy;
	
	@ApiModelProperty(value = "更新时间")
	private Date updatedAt;
	
	@ApiModelProperty(value = "更新者")
	private String updatedBy;

	@Data
	public static class Channel {
		@ApiModelProperty(value = "编码")
		@CusFieldBind(type = DictTypeCons.MESSAGE_CHANNEL_TYPE, target = "name")
		private String code;

		@ApiModelProperty(value = "通知渠道id")
		private Long id;

		@ApiModelProperty(value = "名称")
		private String name;

		@ApiModelProperty(value = "状态")
		private String status;
	}
}
